import request from '@/utils/request'

// 查询收资列表
export function pickupList(query) {
    return request({
        url: '/businessWorkbench/pickup/list',
        method: 'get',
        params: query
    })
}
//新增收资
export function addPickup(data) {
    return request({
        url: '/businessWorkbench/pickup',
        method: 'post',
        data: data
    })
}
//删除
export function delPickup(id) {
    return request({
        url: '/businessWorkbench/pickup/' + id,
        method: 'delete'
    })
}
//获取详情
export function getPickupDetail(id) {
    return request({
        url: '/businessWorkbench/pickup/' + id,
        method: 'get'
    })
}
//修改
export function updatePickup(data) {
    return request({
        url: '/businessWorkbench/pickup',
        method: 'put',
        data: data
    })
}
//导出清单
export function exportPickupList(query) {
    debugger
    return request({
        url: '/businessWorkbench/pickup/export',
        method: 'get',
        params: query
    })
}

//导入清单
export function importData(data) {
    return request({
        url: '/businessWorkbench/pickup/importData',
        method: 'post',
        data: data
    })
}

//导入模板
export function importTemplate(guid, id) {
    return request({
        url: '/businessWorkbench/pickup/' + guid + '/' + id,
        method: 'get'
    })
}